[NTG-context] Re: Math alignment issue

2024-01-17 Thread Otared Kavian
] [left={\startmathfenced[cases]}, right=\stopmathfenced, align={1:right,2:left,3:left}, strut=yes] \setupformula [location=left] \starttext \samplefile{knuthmath} \startplaceformula \startformula \startalignedcases

[NTG-context] Re: Math alignment issue

2024-01-17 Thread Otared Kavian
Hi Mikael,Thank you for your reply. When I typeset the example you sent me, that is%begin 240117-1-bis.tex\definemathsimplealign[alignedcases] [left={\startmathfenced[cases]}, right=\stopmathfenced, align={1:right,2:left,3:left}, strut=yes]\setupformula  [location=left]\starttext\samplefile

Re: [NTG-context] Bug in placeformula

2022-07-13 Thread Otared Kavian via ntg-context
rlocation=overlay] > a^2 + b^2 = c^2. > \stopformula > > (or put the keys in \setupformula) > > I hope it helps. > > /Mikael ___ If your question is of interest to others as well, please add a

Re: [NTG-context] Bug in placeformula

2022-07-12 Thread Mikael Sundqvist via ntg-context
moment can live without splitting, then this seems to give you the formula number where expected: \placeformula \startformula[location=left,split=no,numberlocation=overlay] a^2 + b^2 = c^2. \stopformula (or put the keys in \setupformula) I hope it helps. /Mikael _

Re: [NTG-context] Formulanumbers in margin

2021-03-23 Thread Adam Reviczky
e=Cow] \externalfigure[cow] \stopplacefigure > > \define[1]\MyFormulaNumber{\inleftmargin{#1}} > \setupformula[numbercommand=\MyFormulaNumber] > > \inleftmargin{Left Margin Text} > \inrightmargin{Right Margin Text} > > \startplaceformula[reference=eq1] \startformula c^2 =

Re: [NTG-context] Formulanumbers in margin

2021-03-21 Thread Adam Reviczky
\setupcaption[figure][location={rightmargin}] \startplacefigure[title=Cow] \externalfigure[cow] \stopplacefigure \define[1]\MyFormulaNumber{\inleftmargin{#1}} \setupformula[numbercommand=\MyFormulaNumber] \inleftmargin{Left Margin Text} \inrightmargin{Right Margin Text} \startplaceformula

Re: [NTG-context] Formulanumbers in margin

2021-03-21 Thread Henning Hraban Ramm
ex) however > does work, so not sure: > \setupformula[numbercommand={\inframed[framecolor=green]}] Are your margins actually non-zero? (\setuplayout) Maybe check with \showlayout Hraban ___ If your question is

Re: [NTG-context] Formulanumbers in margin

2021-03-21 Thread Adam Reviczky
lob/a0270f13065d116355a953c6f246cbba26289fc2/doc/context/sources/general/manuals/math/math-framing.tex>) however does work, so not sure: \setupformula[numbercommand={\inframed[framecolor=green]}] Adam On Sun, Mar 21, 2021 at 7:47 PM Henning Hraban Ramm wrote: > > > > Am 21.03.2021 um 19:40 sch

Re: [NTG-context] Formulanumbers in margin

2021-03-21 Thread Henning Hraban Ramm
> Am 21.03.2021 um 19:40 schrieb Adam Reviczky : > > % this makes the formulanumber disappear > % \setupformulas[location={rightmargin}] No, \setupformula’s location understands only left and right. Try something like: \define[1]\MyFormulaNumber{\inmargin{#1}} \

Re: [NTG-context] next beta

2017-06-12 Thread Mathias Schickel
rse{100}{+#1x^{#1x}}=10 > \stopformula > > test > > \startformula >x\dorecurse{100}{+#1x^{#1x}}=10 > \stopformula > > test > \stopbuffer > > \par \setupformula[split=no] \getbuffer \par > \par \setupformula[split=yes

[NTG-context] next beta

2017-06-12 Thread Hans Hagen
Hi, experimental in next beta: \starttext test \startbuffer \placeformula \startformula x\dorecurse{100}{+#1x^{#1x}}=10 \stopformula test \startformula x\dorecurse{100}{+#1x^{#1x}}=10 \stopformula test \stopbuffer \par \setupformula[split=no] \getbuffer \par \par \setupformula

Re: [NTG-context] mathmatrix and grid: followup

2017-06-01 Thread Henri Menke
> > > > > > > > some time ago I asked about the interplay of mathmatix with grid > > > > > > > typesetting: https:// > > > > > > > ma > > > > > > > ilman.ntg.nl/pipermail/ntg-context/2016/087

Re: [NTG-context] mathmatrix and grid: followup

2017-06-01 Thread Henri Menke
lay of mathmatix with grid > > > > > > typesetting: https://ma > > > > > > ilman.ntg.nl/pipermail/ntg-context/2016/087018.html > > > > > > > > > > > > I noticed that when the grid is enabled, the height of a mathmatrix >

Re: [NTG-context] whitespace before/after \startformula…\stopformula

2017-05-29 Thread Aditya Mahajan
On Mon, 29 May 2017, Alan Bowen wrote: How does one control/suppress the whitespace before and after \startformula…\stopformula? Using spacebefore and spaceafter in \setupformula Aditya___ If your question

Re: [NTG-context] Formula numbers in RTL mode

2017-05-28 Thread Hans Hagen
On 5/26/2017 5:02 AM, Mohammad Hossein Bateni wrote: For the record, here is my solution until the issue is fixed for RTL. \setupformula[distance=0pt] This causes the formula numbers to be at the proper place for left/right as well as LTR/RTL. It prevents some custom placement of the formula

Re: [NTG-context] Formula numbers in RTL mode

2017-05-25 Thread Mohammad Hossein Bateni
For the record, here is my solution until the issue is fixed for RTL. \setupformula[distance=0pt] This causes the formula numbers to be at the proper place for left/right as well as LTR/RTL. It prevents some custom placement of the formula number, which I do not care about. —MHB On Mon, May

[NTG-context] Formula numbers in RTL mode

2017-05-15 Thread Mohammad Hossein Bateni
\setupformula[location=left] gives similar results with directions swapped: output is as desired in LTR but slightly off the edge in RTL. Thanks, MHB 1.pdf Description: Adobe PDF document ___ If your question is of interest

Re: [NTG-context] mathmatrix and grid: followup

2017-04-01 Thread Henri Menke
gt;>> typesetting: https://mailman.ntg.nl/pipermail/ntg-context/2016/087018.html >>>>> >>>>> I noticed that when the grid is enabled, the height of a mathmatrix is >>>>> rounded down which leaves less space above than below. In my opinion >>>>

Re: [NTG-context] mathmatrix and grid: followup

2017-01-24 Thread Henri Menke
nabled, the height of a mathmatrix is >>>> rounded down which leaves less space above than below. In my opinion >>>> either the height should be rounded up or the depth rounded down here. In >>>> the original thread Wolfgang proposed using \setupformula[grid=

Re: [NTG-context] mathmatrix and grid: followup

2017-01-06 Thread Henri Menke
In my opinion >>> either the height should be rounded up or the depth rounded down here. In >>> the original thread Wolfgang proposed using \setupformula[grid=tolerant] >>> and adding a blank line before the formula (otherwise grid=tolerant is >>> applied to the para

Re: [NTG-context] mathmatrix and grid: followup

2016-12-10 Thread Henri Menke
18.html >> >> I noticed that when the grid is enabled, the height of a mathmatrix is >> rounded down which leaves less space above than below. In my opinion either >> the height should be rounded up or the depth rounded down here. In the >> original thread Wolfgang pro

Re: [NTG-context] mathmatrix and grid: followup

2016-11-27 Thread Henri Menke
trix is > rounded down which leaves less space above than below. In my opinion either > the height should be rounded up or the depth rounded down here. In the > original thread Wolfgang proposed using \setupformula[grid=tolerant] and > adding a blank line before the formula (othe

[NTG-context] mathmatrix and grid: followup

2016-11-22 Thread Henri Menke
either the height should be rounded up or the depth rounded down here. In the original thread Wolfgang proposed using \setupformula[grid=tolerant] and adding a blank line before the formula (otherwise grid=tolerant is applied to the paragraph before). This workaround leads to the depth being

Re: [NTG-context] mathmatrix and grid

2016-10-10 Thread Henri Menke
and depth visible >>>> \startmathmatrix >>>> \NC A \NR >>>> \NC B \NR >>>> \NC C \NR >>>> \stopmathmatrix >>>> \stopformula >>>> \input tufte >>>> >>>> \stoptext >>> The default

Re: [NTG-context] mathmatrix and grid

2016-10-10 Thread Wolfgang Schuster
itself, e.g. \setupformula[grid=tolerant] but you should add a blank line before \startformula, otherwise the setting for formula is applied to the last paragraph before it. Wolfgang ___ If your question is of intere

Re: [NTG-context] Indentation after formula

2016-09-14 Thread Hans Åberg
> On 14 Sep 2016, at 15:43, Wolfgang Schuster <schuster.wolfg...@gmail.com> > wrote: > >> Hans Åberg 14. September 2016 um 15:39 >> >> OK. Thanks. >> >> There is both \setupformulas and \s

Re: [NTG-context] Indentation after formula

2016-09-14 Thread Wolfgang Schuster
Hans Åberg <mailto:haber...@telia.com> 14. September 2016 um 15:39 OK. Thanks. There is both \setupformulas and \setupformula. Are they the same? Yes. Wolfgang ___ If your question is of interest to others a

Re: [NTG-context] Indentation after formula

2016-09-14 Thread Hans Åberg
ot treated as such, but as the text following it. > \setupformula[indentnext=auto] OK. Thanks. There is both \setupformulas and \setupformula. Are they the same? ___ If your question is of interest to others as well, p

Re: [NTG-context] Indentation after formula

2016-09-14 Thread Wolfgang Schuster
Hans Åberg <mailto:haber...@telia.com> 14. September 2016 um 15:20 Looks like a bug: If there is no text immediately following a formula, the following paragraph is not treated as such, but as the text following it. \setupformula[indentnext=auto] Wo

Re: [NTG-context] alignment problem in a table

2016-07-19 Thread Wolfgang Schuster
Fabrice Couvreur <mailto:fabrice1.couvr...@gmail.com> 19. Juli 2016 um 15:19 Hello, The third column of matrix is not centered vertically and horizontally. Add the following two lines to your example \setupformula [option=frame] \setupformulaframed[offset=0pt] and you c

Re: [NTG-context] Strange result with formulaframed

2016-06-22 Thread Hans Hagen
it be possible to have a mechanism which gives somehow what Aditya was asking? well, afaik he was asking for framed formulas but it will probably take a bit of time to test it with all kind of interferences % begin framed-frormula.tex \setupformulaframed[framecolor=red,frame=on,offset=1ex] \setupformula

[NTG-context] Strange result with formulaframed

2016-06-22 Thread Otared Kavian
Aditya was asking? % begin framed-frormula.tex \setupformulaframed[framecolor=red,frame=on,offset=1ex] \setupformula[option=frame,color=blue] \starttext \startplaceformula \startformula f(x) := \left\{ \startalign \NC = -1\NC\quad \mbox{if }\, x < 0 \NR \NC = +1\NC\quad \mbox{if }\

Re: [NTG-context] Flushleft formula

2016-06-18 Thread Hans Hagen
rmulas. something like a \setupformula [before={\startframedtext[background=color,backgroundcolor=lightblue]}, after={\stopframedtext}] One typically wants to have a bounding box around the displayed math, but not the white space or the equation number. For example, see the attached image. experi

Re: [NTG-context] Flushleft formula

2016-06-16 Thread Aditya Mahajan
On Thu, 16 Jun 2016, Alan BRASLAU wrote: On Thu, 16 Jun 2016 18:18:58 -0400 Aditya Mahajan <adit...@umich.edu> wrote: And some stage, it will be nice to discuss the possiblility of adding background to formulas, especially aligned formulas. something like a \setupformula [

Re: [NTG-context] Flushleft formula

2016-06-16 Thread Alan BRASLAU
On Thu, 16 Jun 2016 18:18:58 -0400 Aditya Mahajan <adit...@umich.edu> wrote: > And some stage, it will be nice to discuss the possiblility of adding > background to formulas, especially aligned formulas. something like a \setupformula [before={\startframedtext[back

Re: [NTG-context] Flushleft formula

2016-06-16 Thread Aditya Mahajan
://texdoc.net/texmf-dist/doc/latex/mathtools/empheq.pdf Consider the following example: \showframe \setupitemize[margin=6em] \setupformula[align=flushleft] \starttext \startitemize \item An equation inside an itemize \startformula E = mc^2 \stopformula \stopitemize \stoptext

Re: [NTG-context] Flushleft formula

2016-06-16 Thread Hans Hagen
, some more - future - possibilities and bester handling in boxes and such) Consider the following example: \showframe \setupitemize[margin=6em] \setupformula[align=flushleft] \starttext \startitemize \item An equation inside an itemize \startformula E = mc^2 \stopformula

[NTG-context] Flushleft formula

2016-06-16 Thread Aditya Mahajan
Hi, Something has changed with respect to the align=flushleft option for formulas. Earlier (tested with 2016.05.08), align=flushleft did not remove the leftskip, but now it does. Consider the following example: \showframe \setupitemize[margin=6em] \setupformula[align=flushleft] \starttext

Re: [NTG-context] Formula numbering

2015-09-08 Thread Wolfgang Schuster
etting the counter with each new chapter, or section. %% begin example \setupformula[prefix=no] \starttext \chapter{Chapter} \placeformula \startformula 1 + 2 = 3 \stopformula \stoptext %% end example Wolfgang ___

Re: [NTG-context] setupformulas

2013-06-11 Thread Wolfgang Schuster
(A-1)! Any idea how the key is called to change this? You can change the separator between the section prefix and the formula number with \setupformula[prefixconnector=-]. Is there also a key for a own prefix, eg. my: (my-1)? It’s not a prefix but you can set a labeltext

Re: [NTG-context] setupformulas

2013-06-11 Thread Steffen Wolfrum
,prefixsegments=chapter] gives (A..1) But I need (A-1)! Any idea how the key is called to change this? You can change the separator between the section prefix and the formula number with \setupformula[prefixconnector=-]. Is there also a key for a own prefix, eg. my: (my-1

Re: [NTG-context] setupformulas

2013-06-10 Thread Wolfgang Schuster
number with \setupformula[prefixconnector=-]. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg

Re: [NTG-context] setupformulas

2013-06-10 Thread Steffen Wolfrum
the separator between the section prefix and the formula number with \setupformula[prefixconnector=-]. Is there also a key for a own prefix, eg. my: (my-1)? Steffen ___ If your question is of interest to others

Re: [NTG-context] setupformulas reset not working

2013-01-18 Thread Zenlima
Thanks, that explanation makes it a lot easier :-) \formulaparameter is a command to access the values of the keys for the \setupformula command, e.g. \formulaparameter{spacebefore} results in “big”. ___ If your

Re: [NTG-context] setupformulas reset not working

2013-01-17 Thread Wolfgang Schuster
to reset the spaces of setupformulas? And what kind of space is \formulaparameter? \formulaparameter is a command to access the values of the keys for the \setupformula command, e.g. \formulaparameter{spacebefore} results in “big”. Wolfgang

Re: [NTG-context] about \startformula\startalign error

2012-07-22 Thread Aditya Mahajan
(better to hide this in a macro): \starttext \starttable[|c|c|] \HL \NC A \VL B \VL \SR \HL \NC $x$ \VL \framed[frame=no,height=fit, strut=no, location=lohi,align=normal]{ \setupformula[spacebefore=,spaceafter=] \startformula \startalign \NC x' \NR \NC y' \NR \stopalign \stopformula} \VL